home *** CD-ROM | disk | FTP | other *** search
-
-
-
- XXXXSSSSCCCCOOOOPPPPEEEE((((1111)))) XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((8888 AAAAuuuugggg 1111999999991111)))) XXXXSSSSCCCCOOOOPPPPEEEE((((1111))))
-
-
-
- NNNNAAAAMMMMEEEE
- xscope - X Window System Protocol Monitor
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- xxxxssssccccooooppppeeee [ options ] ...
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _x_s_c_o_p_e is a program that monitors connections between an X
- server and a client. _x_s_c_o_p_e prints to stdout the contents
- of each request, reply, error, or event that is communicated
- between the server and client. This information can be
- useful in debugging and performance tuning of X servers and
- clients.
-
- _x_s_c_o_p_e attaches to the X server as if it were a client. By
- adjusting the host and/or display number, the client can be
- made to attach to _x_s_c_o_p_e instead of the X server.
-
- server <-----> xscope <-----> client
-
- All bytes from the server are sent to _x_s_c_o_p_e which sends
- them on to the client. All bytes from the client are sent
- to _x_s_c_o_p_e which passes them on to the server. _x_s_c_o_p_e is
- transparent to both the server and the client.
-
- OOOOPPPPTTTTIIIIOOOONNNNSSSS
- ----dddd<<<<ddddiiiissssppppllllaaaayyyy>>>>
- Defines the display number. The display number is
- added to the input and output port to give the
- actual ports which are used by _x_s_c_o_p_e.
-
- ----hhhh<<<<hhhhoooosssstttt>>>> Determines the host that _x_s_c_o_p_e will use to find
- the server.
-
- ----iiii<<<<iiiinnnnppppuuuutttt----ppppoooorrrrtttt>>>>
- Specify the port that _x_s_c_o_p_e will use to take
- requests from clients (defaults is 1). For X11,
- this port is automatically biased by 6000.
-
- ----oooo<<<<oooouuuuttttppppuuuutttt----ppppoooorrrrtttt>>>>
- Determines the port that _x_s_c_o_p_e will use to
- connect to the server (defaults is 0). For X11,
- this port is automatically biased by 6000.
-
- ----qqqq Quiet output mode. Gives only the names of
- requests, replies, errors, and events, but does
- not indicate contents.
-
- ----SSSS<<<<zzzzeeeerrrroooo----oooorrrr----oooonnnneeee>>>>
- Run with SIGUSR1 triggered tracing. Following the
- option with a zero begins _x_s_c_o_p_e not tracing;
- following the option with a one begins _x_s_c_o_p_e
-
-
-
- Page 1 (printed 4/30/98)
-
-
-
-
-
-
- XXXXSSSSCCCCOOOOPPPPEEEE((((1111)))) XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((8888 AAAAuuuugggg 1111999999991111)))) XXXXSSSSCCCCOOOOPPPPEEEE((((1111))))
-
-
-
- tracing. Send a SIGUSR1 signal to the xscope
- process to toggle tracing.
-
- ----vvvv<<<<pppprrrriiiinnnntttt----lllleeeevvvveeeellll>>>>
- Determines the level of verbosity which _x_s_c_o_p_e
- will provide. The print-level can be 0 (same as
- quiet mode), 1, 2, 3, 4. The larger numbers give
- more and more output. For example, a successful
- setup returns a string which is the name of the
- vendor of the X server. At level 1, the explicit
- field giving the length of the string is
- suppressed since it can be inferred from the
- string. At level 2 and above the length is
- explicitly printed.
-
- OOOOPPPPEEEERRRRAAAATTTTIIIIOOOONNNN
- When running with _x_s_c_o_p_e, three processes are involved,
- potentially all on different machines:
-
- _X _s_e_r_v_e_r
- The X server will run on machine (or host) "A", display
- "B". ("A" is a machine name; "B" is a display number).
-
- _x_s_c_o_p_e
- _x_s_c_o_p_e must be told where the X server is (what machine
- and what display), and, in addition, the _p_o_r_t-_n_u_m_b_e_r on
- which to listen for X clients. The options for _x_s_c_o_p_e
- are "-h<Xserver-host>" and "-d<display-number>". In
- this example, -hA and -dB. Typically the _d_i_s_p_l_a_y-
- _n_u_m_b_e_r is not given. _x_s_c_o_p_e will not try to connect
- to the server until the client connects to _x_s_c_o_p_e.
-
- _X _c_l_i_e_n_t
- The client should connect to _x_s_c_o_p_e rather than to the
- server. To avoid changing the code for the client,
- _x_s_c_o_p_e listens on the same port as the server for
- connecting clients. If the server and _x_s_c_o_p_e are on
- different machines, this works well. However, if the
- server and _x_s_c_o_p_e are on the same machine, this creates
- a port conflict. To resolve this conflict, _x_s_c_o_p_e can
- be given a different input or output port number, as
- necessary, to avoid the port that the server is
- listening to. The client must connect to this offset
- port number. The input port for _x_s_c_o_p_e is set by
- -_i<_p_o_r_t-_n_u_m_b_e_r>; the output port is set by -_o<_p_o_r_t-
- _n_u_m_b_e_r>. The default input port is 1; the default
- output port is 0. These ports are offset by the X11
- base (6000) and the display number. The client
- attaches to _x_s_c_o_p_e by changing its display number by
- the port offset.
-
- EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
-
-
-
- PPPPaaaaggggeeee 2222 ((((pppprrrriiiinnnntttteeeedddd 4444////33330000////99998888))))
-
-
-
-
-
-
- XXXXSSSSCCCCOOOOPPPPEEEE((((1111)))) XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((8888 AAAAuuuugggg 1111999999991111)))) XXXXSSSSCCCCOOOOPPPPEEEE((((1111))))
-
-
-
- xxxxssssccccooooppppeeee ----hhhhbbbbaaaaggggeeeellll ----iiii0000
-
- The X server would run on "bagel", display 0 (the default).
- _x_s_c_o_p_e and the client would both be on "cleo". The client
- program would connect to "X" on "cleo:0", and would be
- attached to _x_s_c_o_p_e, which would then attach to the server on
- "bagel:0".
-
- server (bagel:0) <-----> xscope -hbagel -i0 <----->
- client -d cleo:0
-
- xxxxssssccccooooppppeeee ----iiii1111
-
- Here is a case where all three processes would run on
- "cleo". _x_s_c_o_p_e would listen on port 6001 (which is display
- 1 for X11). The client would attach to the server on
- "cleo:1", and _x_s_c_o_p_e would connect through to the server on
- "cleo:0".
-
- server (cleo:0) <-----> xscope -i1 <-----> client -d
- cleo:1
-
- xxxxssssccccooooppppeeee ----hhhhcccclllleeeeoooo ----dddd0000 ----oooo0000 ----iiii1111 ----vvvv4444
-
- This example is similar to the previous one, and would have
- _x_s_c_o_p_e communicate with an X server on host ``cleo'',
- display 0. _x_s_c_o_p_e itself would be available on the current
- host as display 1 (display of 0 plus the 1 of -i1). Verbose
- level 4.
-
- server (cleo:0) <-----> xscope -hcleo -d0 -o0 -i1 -v4
- <-----> client -d cleo:1
-
- xxxxssssccccooooppppeeee ----dddd1111 ----oooo1111 ----iiii3333 ----qqqq
-
- The X server for the current host, display 2 (1 for -d1 plus
- 1 for -o1) would be used by _x_s_c_o_p_e, which would run as
- display 4 (1 for -d1 plus 3 for -i3). Quiet mode (verbose
- level 0).
-
- server (unix:1) <-----> xscope -d1 -o1 -i3 -q <----->
- client -d unix:4
-
- LLLLIIIIMMMMIIIITTTTAAAATTTTIIIIOOOONNNNSSSS
- The X Version 11 and PEX Version 5 Protocols are the only
- protocols recognized.
-
- The command line arguments for specifying the real X server
- should be changed to be more consistent with the style since
- X11R3.
-
- The Imakefile may be incorrect.
-
-
-
- Page 3 (printed 4/30/98)
-
-
-
-
-
-
- XXXXSSSSCCCCOOOOPPPPEEEE((((1111)))) XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((8888 AAAAuuuugggg 1111999999991111)))) XXXXSSSSCCCCOOOOPPPPEEEE((((1111))))
-
-
-
- The builtin atoms have been wired in directly. A better
- solution is to pick them up from a header file.
-
- There is no code yet to interpret typed commands from the
- keyboard. It would be possible for a command language at
- the keyboard to create artificial characters to be sent to
- the server or the client as if they were generated by the
- opposite side, or to dynamically alter requests or replies.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- X(1), X11 and PEX Protocol documents
-
- AAAAUUUUTTTTHHHHOOOORRRR
- James L. Peterson (MCC)
-
- Copyright 1988, MCC
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Page 4 (printed 4/30/98)
-
-
-
-